﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020012A3 RID: 4771
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SwordTrainingMarkEndingViewedScRsp : IMessage<SwordTrainingMarkEndingViewedScRsp>, IMessage, IEquatable<SwordTrainingMarkEndingViewedScRsp>, IDeepCloneable<SwordTrainingMarkEndingViewedScRsp>, IBufferMessage
	{
		// Token: 0x17003C68 RID: 15464
		// (get) Token: 0x0600D5E1 RID: 54753 RVA: 0x0023EF15 File Offset: 0x0023D115
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SwordTrainingMarkEndingViewedScRsp> Parser
		{
			get
			{
				return SwordTrainingMarkEndingViewedScRsp._parser;
			}
		}

		// Token: 0x17003C69 RID: 15465
		// (get) Token: 0x0600D5E2 RID: 54754 RVA: 0x0023EF1C File Offset: 0x0023D11C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SwordTrainingMarkEndingViewedScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003C6A RID: 15466
		// (get) Token: 0x0600D5E3 RID: 54755 RVA: 0x0023EF2E File Offset: 0x0023D12E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SwordTrainingMarkEndingViewedScRsp.Descriptor;
			}
		}

		// Token: 0x0600D5E4 RID: 54756 RVA: 0x0023EF35 File Offset: 0x0023D135
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SwordTrainingMarkEndingViewedScRsp()
		{
		}

		// Token: 0x0600D5E5 RID: 54757 RVA: 0x0023EF3D File Offset: 0x0023D13D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SwordTrainingMarkEndingViewedScRsp(SwordTrainingMarkEndingViewedScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600D5E6 RID: 54758 RVA: 0x0023EF62 File Offset: 0x0023D162
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SwordTrainingMarkEndingViewedScRsp Clone()
		{
			return new SwordTrainingMarkEndingViewedScRsp(this);
		}

		// Token: 0x17003C6B RID: 15467
		// (get) Token: 0x0600D5E7 RID: 54759 RVA: 0x0023EF6A File Offset: 0x0023D16A
		// (set) Token: 0x0600D5E8 RID: 54760 RVA: 0x0023EF72 File Offset: 0x0023D172
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x0600D5E9 RID: 54761 RVA: 0x0023EF7B File Offset: 0x0023D17B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SwordTrainingMarkEndingViewedScRsp);
		}

		// Token: 0x0600D5EA RID: 54762 RVA: 0x0023EF89 File Offset: 0x0023D189
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SwordTrainingMarkEndingViewedScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600D5EB RID: 54763 RVA: 0x0023EFB8 File Offset: 0x0023D1B8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600D5EC RID: 54764 RVA: 0x0023EFF7 File Offset: 0x0023D1F7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600D5ED RID: 54765 RVA: 0x0023EFFF File Offset: 0x0023D1FF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600D5EE RID: 54766 RVA: 0x0023F008 File Offset: 0x0023D208
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(80);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600D5EF RID: 54767 RVA: 0x0023F03C File Offset: 0x0023D23C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600D5F0 RID: 54768 RVA: 0x0023F07A File Offset: 0x0023D27A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SwordTrainingMarkEndingViewedScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600D5F1 RID: 54769 RVA: 0x0023F0AB File Offset: 0x0023D2AB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600D5F2 RID: 54770 RVA: 0x0023F0B4 File Offset: 0x0023D2B4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 80U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04005574 RID: 21876
		private static readonly MessageParser<SwordTrainingMarkEndingViewedScRsp> _parser = new MessageParser<SwordTrainingMarkEndingViewedScRsp>(() => new SwordTrainingMarkEndingViewedScRsp());

		// Token: 0x04005575 RID: 21877
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005576 RID: 21878
		public const int RetcodeFieldNumber = 10;

		// Token: 0x04005577 RID: 21879
		private uint retcode_;
	}
}
